package net.bluesword.practice003;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FileController {
    @RequestMapping("/detail/{type}/{path}")
    public String toDetails(@PathVariable("type") String type,
                            @PathVariable("path") String path)
    {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        System.out.println(encoder.encode("123456"));
        return String.format("/%s/%s",type,path);

    }
}
